package org.lt.resume.service.userservice;

import org.lt.resume.dao.userdao.UserDAO;
import org.lt.resume.domain.users.User;
import org.lt.resume.service.userserviceInterface.UserServiceInterface;

public class UserServiceImpl implements UserServiceInterface{

	private UserDAO userDAO;

	public boolean hasMatchUser(String userName){
    	User user = userDAO.findByUsername(userName);
    	if (user == null){
    		return false;
    	}
		return true;
    }

	public void registerUser(User user) {
		userDAO.addUserInfo(user);
	}

    public UserDAO getUserDAO() {
		return userDAO;
	}

	public void setUserDAO(UserDAO userDAO) {
		this.userDAO = userDAO;
	}

}
